5792ea2278aa5cd5596a5b50fbba220e89687675,src/main/java/io/github/jhipster/sample/config/LoggingConfiguration.java,LoggingConfiguration,init,#,33

Before Change


    @PostConstruct
    private void init() {
        if (jHipsterProperties.getLogging().getLogstash().isEnabled()) {
            addLogstashAppender();
        }
    }

After Change


    @PostConstruct
    private void init() {
        if (jHipsterProperties.getLogging().getLogstash().isEnabled()) {
            addLogstashAppender(context);

            // Add context listener
            LogbackLoggerContextListener loggerContextListener = new LogbackLoggerContextListener();